<extend name="Base:main" />
<block name="content">
    <div class="tpl-content-wrapper">
            <div class="tpl-content-page-title">
                商家资料
            </div>
            <ol class="am-breadcrumb">
                <li><a href="#" class="am-icon-home">首页</a></li>
                <li><a href="#">账户管理</a></li>
                <li class="am-active">商家资料</li>
            </ol>
            <div class="tpl-portlet-components">
                <div class="portlet-title">
                      <div class="caption font-green bold">
                        <span class="am-icon-code"></span>商家资料
                    </div>
                </div>
                <div class="tpl-block ">

                    <div class="am-g tpl-amazeui-form">


                        <div class="am-u-sm-12 am-u-md-9">
                             <form class="am-form am-form-horizontal" name='myfromSubmit'>
                     
							 
							 <div class="am-form-group">
									<label for="user-email" class="am-u-sm-3 am-form-label">商家名称</label>
									<div class="am-u-sm-7 float_left">
										{$login_info.shop_name}
									</div>
							</div>
							<div class="am-form-group">
									<label for="user-email" class="am-u-sm-3 am-form-label">联系人</label>
										<div class="am-u-sm-7 float_left">{$login_info.contact}
									</div>
							</div>
							<div class="am-form-group">
								<label for="user-email" class="am-u-sm-3 am-form-label">联系电话</label>
								<div class="am-u-sm-5 float_left">
									<?php echo preg_replace('/^([0-9]{3})([0-9]{4})([0-9]{4})$/','$1****$3' , $login_info['contact_tel']); ?>	
									<a href="{:U('Accunt/mobileSave')}" title="手机号修改" width="600" height="365" menu="load_iframe_url" class="am-btn am-btn-default am-btn-sm">手机号修改</a>				 
								</div>
							</div>
							<div class="am-form-group">
									<label for="user-email" class="am-u-sm-3 am-form-label">商家地址</label>
									<div class="am-u-sm-5 float_left">
										{$login_info.address}
									</div>
							</div>
                                                         <div class="am-form-group">
									<label for="user-email" class="am-u-sm-3 am-form-label">商家企业身份</label>
									<div class="am-u-sm-5 float_left">
                                                                            <?php echo M('company')->where(array('id'=>$login_info['company_id']))->getField('name');?>
									</div>
							</div>
							<div class="am-form-group">
								<div class="am-u-sm-9 am-u-sm-push-3">
									<a href="{:U('Index/saveInfo')}" title="商家资料修改" width="600" height="365" menu="load_iframe_url" class="am-btn am-btn-primary">资料修改</a>
									<a href="{:U('Index/savePass')}" title="密码修改" width="600" height="330" menu="load_iframe_url" class="am-btn am-btn-primary">密码修改</a>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
        </div>
</block>